package com.javaone;

import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        //控制台对象
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入姓名：");
        String uName= scanner.next();
        System.out.println("请输入年龄：");
        int age=scanner.nextInt();
        System.out.println("请输入性别：");
        String sex=scanner.next();

        System.out.println("姓名:"+uName+",年龄："+age+",性别："
                +sex);
    }
}
